package security.Authentication.Base;

/**
 * Data of a unknown user
 * @author Andreas Carmvall
 */
public class UnknownUser implements User {

	/**
	 * Why the user was not identified
	 */
	private String cause;
	
	/**
	 * If the user was denied
	 */
	private Boolean denied;
	
	/**
	 * Class constructor
	 * @param cause the cause why the user was not identified
	 * @param denied if the user was denied
	 */
	public UnknownUser(String cause, Boolean denied) {
		this.cause = cause;
		this.denied = denied;
	}
	
	/**
	 * Get the cause why the user was not identified
	 * @return the cause
	 */
	public String getCause() {
		return cause;
	}
	
	/**
	 * Get if the user was denied
	 * @return true if the user was denied
	 */
	public Boolean isDenied() {
		return denied;
	}
}
